package com.chhuang.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chhuang.core.mapper.IBaseMapper;
import com.chhuang.system.bean.MenuWithRoleIdQueryBean;
import com.chhuang.system.po.ChMenu;
import com.chhuang.system.po.ChRoleMenuMap;
import com.chhuang.system.po.ChRoleMenuMapExample;

public interface ChRoleMenuMapMapper extends IBaseMapper<ChRoleMenuMap>{
	int countByExample(ChRoleMenuMapExample example) throws Exception;

    int deleteByExample(ChRoleMenuMapExample example) throws Exception;

    List<ChRoleMenuMap> selectByExample(ChRoleMenuMapExample example) throws Exception;

    int updateByExampleSelective(@Param("record") ChRoleMenuMap record, @Param("example") ChRoleMenuMapExample example) throws Exception;

    int updateByExample(@Param("record") ChRoleMenuMap record, @Param("example") ChRoleMenuMapExample example) throws Exception;
    
    List<ChMenu> selectMenusByRoleId(MenuWithRoleIdQueryBean queryBean) throws Exception;
    
    int countMenusByRoleId(MenuWithRoleIdQueryBean queryBean) throws Exception;
}